package com.easyspringboot;

import com.easyspringboot.bean.TableInfo;
import com.easyspringboot.bulider.*;

import java.util.List;

/**
 * @Author xiaoyi
 * @Version 1.0
 * @ClassName RunApplication
 * @Time 3:56
 */
public class RunApplication {
    public static void main(String[] args) {
        List<TableInfo> tableInfoList = BuildTable.getTables();
        BuildBase.execute();
        for (TableInfo tableInfo : tableInfoList) {
            BuildPo.execute(tableInfo);//创建po
            BuildQuery.execute(tableInfo);//创建query
            BuildMapper.execute(tableInfo);//创建mapper
            BuildMapperXML.execute(tableInfo);//创建mapper.xml
            BuildService.execute(tableInfo);//创建service
            BuildServiceImpl.execute(tableInfo);//创建serviceImpl
            BuildController.execute(tableInfo);//创建controller
            BuildRunApplication.execute();//创建RunApplication
            BuildApplictionProperties.execute();//创建application.properties
        }
    }
}
